#ifndef RADIO_H_
#define RADIO_H_

// Public data structures
typedef struct
{
	unsigned int servoIn1;							// First registered edge time
	unsigned int servoIn2;							// Second registered edge time
	
	unsigned int dutyCycle;							// Storage for fine grain duty cycle history
} RadioServoState;

// Public variables
extern volatile RadioServoState RadioCh1; // Roll
extern volatile RadioServoState RadioCh2; // Pitch
extern volatile RadioServoState RadioCh3; // Throttle
extern volatile RadioServoState RadioCh4; // Yaw

// Public functions
void RadioInit(void);

#endif /*RADIO_H_*/
